package com.das.mechanic_base.bean.siveprocess;

import com.das.mechanic_base.widget.SiveReportConverter;

import org.greenrobot.greendao.annotation.Convert;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import java.io.Serializable;
import java.util.List;

/**
 * 作者：zhanglei on 2020-03-19 16:49
 * <p>
 * 邮箱：916256628@qq.com
 */
@Entity
public class SiveTotalReportBean implements Serializable {

    @Id(autoincrement = true)
    private Long id;

    private String currentId;

    @Convert(converter = SiveReportConverter.class, columnType = String.class)
    private List<SiveReportBean> reportBeans;



    @Generated(hash = 598926590)
    public SiveTotalReportBean(Long id, String currentId,
            List<SiveReportBean> reportBeans) {
        this.id = id;
        this.currentId = currentId;
        this.reportBeans = reportBeans;
    }

    @Generated(hash = 745853947)
    public SiveTotalReportBean() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCurrentId() {
        return currentId;
    }

    public void setCurrentId(String currentId) {
        this.currentId = currentId;
    }

    public List<SiveReportBean> getReportBeans() {
        return reportBeans;
    }

    public void setReportBeans(List<SiveReportBean> reportBeans) {
        this.reportBeans = reportBeans;
    }

    @Override
    public String toString() {
        return "{" +
                "\"id\":" + id +
                ", \"currentId\":\'" + currentId + "\'" +
                ", \"reportBeans\":" + reportBeans +
                '}';
    }
}
